import request from '@/utils/request'

export default {
  query(params) {
    return request({
      url: '/base/currency/get-list',
      method: 'get',
      params
    })
  },
  add(data) {
    return request({
      url: '/base/currency/save',
      method: 'post',
      data
    })
  },
  del(data) {
    return request({
      url: '/base/currency/delete',
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: '/base/currency/update',
      method: 'post',
      data
    })
  },
  updateStatus(data) {
    return request({
      url: '/base/currency/update-status',
      method: 'post',
      data
    })
  },
  getDetail(params) {
    return request({
      url: '/base/currency/get-currency-detail',
      method: 'get',
      params
    })
  },
  import(data) {
    return request({
      url: '/base/currency/import',
      method: 'post',
      data
    })
  },
  getCurrencyLog(params) {
    return request({
      url: '/base/currency/get-currency-log',
      method: 'get',
      params
    })
  },
  platformImport(data) {
    return request({
      url: '/v1/base/base-currencys/import-platform-currency',
      method: 'post',
      data
    })
  },
  exportFinance(params) {
    return request({
      url: '/v1/base/base-currencys/export-finance',
      method: 'get',
      params
    })
  },
}
